package com.study.spring.log.easy;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author
 * @date 2021年10月27日 19:34
 * @description
 */

@RestController("demoControllert")
public class DemoController {


    private static final Logger logger = LoggerFactory.getLogger(DemoController.class);

    @GetMapping("/get")
    public String get(){

        logger.warn("message");
        return "OK";
    }

}
